import java.io.Serializable;


public class WriteBlockToDisk implements Serializable {

		/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

		public WriteBlockToDisk(HashMap<String, PostingsList> sorted_terms, HashMap<String, PostingsList> dictionary, File output_file) {
			 try {
			      ObjectInputStream in = new ObjectInputStream(new FileInputStream(output_file));
			      sorted_terms = (HashMap)in.readObject();
			      in.close();

			    } catch(ClassNotFoundException e) {
			      System.out.println(e);

			    } catch(IOException e) {
			      System.out.println(e);
			    }
			  }
		
}

